<template>
  <div>
    <div>通过动态路由获取从别的页面传递过来的数据</div>
  </div>
</template>

<script>
export default {
  props: ["id"],
  created() {
    console.log(this.id);
    console.log(this.$route);
    console.log(this.$route.params.id);
  },
};
</script>
